<me:UIVAF x:Class="WPFExcelReport.TLSVA10"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"   
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"   
                    xmlns:WFF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS" 
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIVAF.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVAF.Resources>
    <StackPanel>
        <WrapPanel  Grid.Row="0" Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}">
            <VA:TSVA06 x:Name="cVA06"  ARTST="{Binding ARTST,ElementName=TV}"  
                        IsKOLLManage="{Binding IsKOLLManage,ElementName=TV}"  
                        EXAUF="{Binding KOLL,ElementName=TV}"  
                        KEY ="{Binding VART,ElementName=TV}"
                        dwVA="{Binding dwVA,ElementName=TV}"
                       Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"/>
            <WFF:TBTNEXE INFO="色号管理" IsInfo="True" CMD="VA09" DLL="TVAFARBEN" STWNW="MainWindow"/>
            <ComboBox Grid.Row="0" Visibility="{Binding IsColorManage,ElementName=TV,Converter={StaticResource bv}}"
                  IsEditable="True" 
                  Width="Auto" MinWidth="60"
                  SelectedValuePath="VAFFARBE"
                  DisplayMemberPath="VAFFARBE"
                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
                 IsSynchronizedWithCurrentItem="True"  
          >
            </ComboBox>
            <WrapPanel Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}">
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=品种:}}"></TextBlock>
                    <TextBlock  Grid.Column="1"  Text="{Binding VAFART}" Width="100"  />
                </Grid>
                <Grid Margin="10,0,0,0" Visibility="{Binding IsColorManage,ElementName=TV,Converter={StaticResource nbv}}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=色号:}}"></TextBlock>
                    <TextBlock  Grid.Column="1"  Text="{Binding VAFFARBE}" Width="40"  />
                </Grid>
            </WrapPanel>
        </WrapPanel>
    </StackPanel>
</me:UIVAF>
